package bpui.editors.node;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;

public class NodeEditorInput implements IEditorInput {
	
	public static final String ID = "bpui.editors.NodeEditor";
	
	private String nodeId;
	private String processId;
	private String nodeName;
	
	public NodeEditorInput(final String processId, final String nodeId, final String nodeName) {
		super();
		this.nodeId = nodeId;
		this.processId = processId;
		this.nodeName = nodeName;
	}

	
	public String getProcessId() {
		return processId;
	}


	@Override
	public boolean exists() {
		return false;
	}

	@Override
	public ImageDescriptor getImageDescriptor() {
		return null;
	}

	@Override
	public String getName() {
		return "Element: " + nodeName;
	}

	@Override
	public IPersistableElement getPersistable() {
		return null;
	}

	@Override
	public String getToolTipText() {
		return "Element: " + nodeName;
	}

	@SuppressWarnings("unchecked")
	@Override
	public Object getAdapter(Class adapter) {
		return null;
	}


	public String getNodeId() {
		return nodeId;
	}
	
	
}
